package cn.fsd.util;

import java.util.HashMap;
import java.util.Map;

public class Constants {

  /**
   * 父级分类
   */
  public static final Integer PARENT = 0;
  /**
   * 子级分类
   */
  public static final Integer CHILD = 1;

  /**
   * 中心库房
   */
  public static final Integer CENTER = 0;

  /**
   * 分站库房
   */
  public static final Integer SUBSTATION = 1;

  public static final Integer BUYIN = 1;

  public static final Integer TRANSFEROUT = 2;

  public static final Integer TRANSFERIN = 3;
  public static final Integer RETURNOUT = 4;
  public static final Integer RETURNIN = 5;
  public static final Integer CENTERRETURN = 6;

  public static final Map<Integer,String> INOUTTYPES = new HashMap<>();

  static {
    INOUTTYPES.put(BUYIN,"购货入库");
    INOUTTYPES.put(TRANSFEROUT,"调拨出库");
    INOUTTYPES.put(TRANSFERIN,"调拨入库");
    INOUTTYPES.put(RETURNOUT,"退货出库");
    INOUTTYPES.put(RETURNIN,"退货入库");
    INOUTTYPES.put(CENTERRETURN,"中心站退货");
  }

  /**
   * 配送中心根据进货单向供应商退货
   * 按供货商查询 1
   * 按商品代码查询 2
   */
  public static final Integer SELECTBYSUPPLIER = 1;
  public static final Integer SELECTBYCODE = 2;

  /**
   * 订货单状态：0表示订单未入库，1表示订单已经入库，2表示订单已经全部退货
   */
  public static final Integer PURCHASENOTIN = 0;
  public static final Integer PURCHASEIN = 1;
  public static final Integer ALLRETURN = 2;
}
